home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / GUICtrlCreateMonthCal.au3 < prev    next >
Text File  |  2006-06-17  |  349b  |  14 lines

  1. #include <GUIConstants.au3>
  2. GUICreate( "Get date", 210,190)
  3.  
  4. $Date = GUICtrlCreateMonthCal ("1953/03/25",10, 10)
  5. GUISetState()
  6.  
  7. ; Run the GUI until the dialog is closed or timeout
  8.  
  9. Do
  10.    $msg = GUIGetMsg()
  11.    If $msg = $Date Then MsgBox(0,"debug","calendar clicked")
  12. Until $msg = $GUI_EVENT_CLOSE
  13.  
  14. MsgBox(0, $msg, GUICtrlread($Date), 2)